{% extends "panel/panel_base.html" %}
{% block panel_title%}Profile:{% endblock %}
{% block panel_content %}
{% if errors %}
	<div id="gen_error_message">
		Errors:
		<ul>
			{% if email_re_error %}<li>The email entered was not valid.</li>{% endif %}
			{% if email_mult %}<li>The email you requested is already in use, please choose another.</li>{% endif %}			
		</ul>
	</div>
{% endif %}
{% if success %}
	<div id="gen_success">
		<ul>
			<li>Profile Successfully Saved</li>
		</ul>
	</div>
{% endif %}
<form action="http://fblaconnection.com/panel/{{user.username}}/profile/" method="post" accept-charset="utf-8">
	<table width="500" border="0">
		<tr>
			<td align="right">User Name: </td>
			<td><input type="text" name="username" value="{{ user.username }}" class="register_text_disabled" READONLY /></td>
		</tr>
		<tr>
			<td align="right">Full Name: </td>
			<td><input type="text" name="first_name" value="{{ user.first_name }} {{ user.last_name }}" class="register_text_disabled" READONLY /></td>
		</tr>
		<tr>
			<td align="right" valign="top">About: </td>
			<td><textarea id="about" rows="10" cols="40" name="about" class="register_text">{{ profile.about }}</textarea></td>
		</tr>
		<tr>
			<td align="right">Your Email: </td>
			<td><input type="text" name="email" value="{{ user.email }}" class="register_text" /></td>
		</tr>
		<tr>
			<td align="right">Grade:</td>
			<td>
				<select name="grade" class="register_text">
					<option value="9" {% ifequal profile.grade 9 %}selected{%endifequal%}>Freshman</option>
					<option value="10" {% ifequal profile.grade 10 %}selected{%endifequal%}>Sophomore</option>
					<option value="11" {% ifequal profile.grade 11 %}selected{%endifequal%}>Junior</option>
					<option value="12" {% ifequal profile.grade 12 %}selected{%endifequal%}>Senior</option>
					<option value="13" {% ifequal profile.grade 13 %}selected{%endifequal%}>Graduated</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">Gender:</td>
			<td>
				<select name="gender" class="register_text">
					<option value="Male" {% ifequal profile.gender "Male" %}selected{%endifequal%}>Male</option>
					<option value="Female" {% ifequal profile.gender "Female" %}selected{%endifequal%}>Female</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">Your Site: </td>
			<td><input type="text" name="site" value="{{ profile.site }}" class="register_text populate" title="Your Website (optional)" /></td>
		</tr>
		<tr>
			<td align="right">AIM: </td>
			<td><input type="text" name="aim" value="{{ profile.aim }}" class="register_text populate" title="Your AIM (optional)" /></td>
		</tr>
		<tr>
			<td align="right">MSN: </td>
			<td><input type="text" name="msn" value="{{ profile.msn }}" class="register_text populate" title="Your MSN (optional)" /></td>
		</tr>
		<tr>
			<td align="right">YAHOO: </td>
			<td><input type="text" name="yahoo" value="{{ profile.yahoo }}" class="register_text populate" title="Your YAHOO (optional)" /></td>
		</tr>
  		<tr>
			<td></td>
			<td>
					<input type="submit" class="register_button" value="Save &rarr;">
			</td>
		</tr>
	</table>
</form>
{% endblock %}